package com.hejielife.immutable2;

/**
 * 2019年8月2日 上午11:01:29
 * 
 * @author hejielife
 * @despribe 安全的演示
 */
public class Main {
	public static void main(String[] args) {
		Point p1 = new Point(0, 0);
		Point p2 = new Point(100, 0);
		Line line = new Line(p1, p2);
		System.out.println("line = " + line);
		p1.x = 150;
		p2.x = 150;
		p2.y = 250;
		System.out.println("line = " + line);
	}
}
